package com.caipin.domain.table;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:35
 * @Description: TODO
 */
public class PopulationCount {
    private Integer student;

    private Integer teacher;

    private Integer total;

    public com.caipin.domain.table.PopulationCount setStudent(Integer student) {
        this.student = student;
        return this;
    }

    public com.caipin.domain.table.PopulationCount setTeacher(Integer teacher) {
        this.teacher = teacher;
        return this;
    }

    public com.caipin.domain.table.PopulationCount setTotal(Integer total) {
        this.total = total;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.table.PopulationCount))
            return false;
        com.caipin.domain.table.PopulationCount other = (com.caipin.domain.table.PopulationCount)o;
        if (!other.canEqual(this))
            return false;
        Object this$student = getStudent(), other$student = other.getStudent();
        if ((this$student == null) ? (other$student != null) : !this$student.equals(other$student))
            return false;
        Object this$teacher = getTeacher(), other$teacher = other.getTeacher();
        if ((this$teacher == null) ? (other$teacher != null) : !this$teacher.equals(other$teacher))
            return false;
        Object this$total = getTotal(), other$total = other.getTotal();
        return !((this$total == null) ? (other$total != null) : !this$total.equals(other$total));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.table.PopulationCount;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $student = getStudent();
        result = result * 59 + (($student == null) ? 43 : $student.hashCode());
        Object $teacher = getTeacher();
        result = result * 59 + (($teacher == null) ? 43 : $teacher.hashCode());
        Object $total = getTotal();
        return result * 59 + (($total == null) ? 43 : $total.hashCode());
    }

    public String toString() {
        return "PopulationCount(student=" + getStudent() + ", teacher=" + getTeacher() + ", total=" + getTotal() + ")";
    }

    public Integer getStudent() {
        return this.student;
    }

    public Integer getTeacher() {
        return this.teacher;
    }

    public Integer getTotal() {
        return this.total;
    }
}

